﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace BlackHtml5.WebSite.Models.Entity.Common
{
    public class sms_record:NFinal.Struct
    {
		public System.Int64 id {get;set;}
		public System.String phone {get;set;}
		public System.String app_id {get;set;}
		public System.String template_id {get;set;}
		public System.String parameters {get;set;}
		public System.String time {get;set;}
		public System.Int64? success {get;set;}
		public System.String randcode {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"id\":");
					tw.Write(id.ToString());
					tw.Write(",");
					tw.Write("\"phone\":");
					tw.Write("\"");
					tw.Write(phone==null?"null":phone);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"app_id\":");
					tw.Write("\"");
					tw.Write(app_id==null?"null":app_id);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"template_id\":");
					tw.Write("\"");
					tw.Write(template_id==null?"null":template_id);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"parameters\":");
					tw.Write("\"");
					tw.Write(parameters==null?"null":parameters);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"time\":");
					tw.Write("\"");
					tw.Write(time==null?"null":time);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"success\":");
					tw.Write(success==null?"null" : success.ToString());
					tw.Write(",");
					tw.Write("\"randcode\":");
					tw.Write("\"");
					tw.Write(randcode==null?"null":randcode);
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
